<?php
/**
 * Sakam - framework oriented trough models
 * 
 * @category   	Sakam
 * @package    	Sakam_Data
 * @subpackage  Sakam_Data_Table
 * @author		Carlos Gonzalez <zahualli@gmail.com>
 * @copyright  	Copyright (c) 2009-2010 Carlos Gonzalez
 */
interface Salam_Data_Table_Interface
{
	/**
	 * Name of table
	 * @var string
	 * @access protected
	 */
	protected $_name = null;
	
	/**
	 * Fields of table
	 * @var array
	 * @access protected
	 */
	protected $_fields = array();
	
	/**
	 * Set Name
	 * @param	string	$name
	 * @access	public
	 * @return 	void
	 */
	public function setName( $name );
	
	/**
	 * Get name
	 * @access	public
	 * @return 	string
	 */
	public function getName();
	
	
	/**
	 * Add field to table
	 * @param	Sakam_Data_Field_Interface	$field
	 * @access	public
	 * @return 	bool
	 */
	public function addField(Sakam_Data_Field_Interface $field );
	
	
	/**
	 * Get SQL code
	 * @access	public
	 * @return 	string
	 */
	public function getSQL();
	
	
}